package com.tid.hbasees.repo;

import com.tid.hbasees.utils.hbase.HBaseHelper;
import org.apache.hadoop.hbase.client.HTableInterface;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.io.IOException;

@Component
public class DictRepo {

    public static String TABLE_NAME = "dict";

    @Resource(name = "hbaseHelper")
    private HBaseHelper hbaseHelper;

    private HTableInterface getTable() throws IOException {
        return hbaseHelper.getTable(TABLE_NAME);
    }

    public String getValueById(String dictName, String id) {
        return "";
    }

    public void saveDictEntry(String dictName, String value) {

    }
}
